import { BASEURL, Post } from './api.js';
//var api = require("./api.js").default;

const url = {
    getZzjgList: BASEURL + "/api/getZzjgList",
    getUserZzjgList: BASEURL + "/api/getUserZzjg"
}

export const getZzjgList = (params) => {
    return new Promise((resolve, reject) => {
        Post(url.getZzjgList, params).then((res) => {
            resolve(res);
        }).catch((res) => {
            reject(res);
        });
    });

}

export const getUserZzjgList = () => {
    return new Promise((resolve, reject) => {
        Post(url.getUserZzjgList, {}).then((res) => {
            resolve(res);
        }).catch((res) => {
            reject(res);
        });
    });

}

export default {
    getZzjgList,getUserZzjgList
}